<?php
require('lib/verify.php');
require('lib/has_char.php');
require('lib/is_approved.php');
require('lib/is_admin.php');

$_category = "warmath";
$_title = "Admin / Add Attendee";

$credit_id = $_POST["cid"];
$character_id = $_POST["id"];
$satout = $_POST["so"];
$system_id = $system["system_id"];

$sql = "INSERT INTO wm_attendees (
	attendee_character, 
	attendee_satout, 
	attendee_credit, 
	attendee_system_id) 
	VALUES ($character_id, 
	$satout, 
	$credit_id, 
	$system_id)";

$result = $db->query($sql);

//reprocessDKP($db, $system["system_id"]);

header("Location: credit.php?id=$credit_id");
?>

